package ${table.pag}.dao;

import java.util.List;
import org.springframework.stereotype.Repository;
import com.sendinfo.xspring.ibatis.page.Page;
import com.sendinfo.xspring.ibatis.page.PageRequest;
import ${table.pag}.model.${table.className};
import com.sendinfo.ebiz3.dao.BaseDao;

@Repository
public class ${table.className}Dao extends BaseDao<${table.className}, Long>{
	public List<${table.className}> find(${table.className} ${table.className?uncap_first}) {
		return this.queryEntitys("ALL", ${table.className?uncap_first});
	}
	
	public Page<${table.className}> page(PageRequest<${table.className}> request){
		Page<${table.className}> result=this.pageQuery(request,"PAGE");
		return result;
	}
}
